package rpc;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.ipc.RPC;

import java.io.IOException;
import java.net.InetSocketAddress;

public class Client {
    public static void main(String[] args) throws IOException {
        MyInterface proxy = RPC.getProxy(MyInterface.class, 1L,
                new InetSocketAddress("127.0.0.1", 8080), new Configuration());
        String name = proxy.findName("G2020038801012312");
        System.out.println(name);
    }
}
